package com.wyjy.bkd.model;

import com.wyjy.bkd.base.BaseModel;
import com.wyjy.bkd.bean.UserInfo;
import com.wyjy.bkd.http.LzyCallback;

import io.reactivex.disposables.CompositeDisposable;

/**
 * @作者: TJ
 * @时间: 2018/7/24 9:27
 * @描述:
 */
public class HomeModel extends BaseModel {


    public HomeModel(CompositeDisposable compositeDisposable) {
        super(compositeDisposable);
    }

    public void getUserInfo(int uid, LzyCallback<UserInfo> callback) {
//        Observable<HttpResult<UserInfo>> observable = mApiService.getUserInfo(uid);
//        applySchedulers(observable);
//        observable.subscribe(this.<HttpResult<UserInfo>>newObserver(callback));
        applySchedulers(mApiService.getUserInfo(uid)).subscribe(newObserver(callback));
    }

}
